package domain.entities;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: vgonzalez
 * Date: 31/08/12
 * Time: 16:26
 * To change this template use File | Settings | File Templates.
 */
public class DocumentType {
    private static final String TIPO_DOC_SUSAR = "SUSAR";
    private static final String TIPO_DOC_IB = "IB";
    private static final String TIPO_DOC_ADDENDUM = "Addendum";
    private String type;

    public DocumentType(String type){
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public static List<DocumentType> getAllTypes(){
        List<DocumentType> tiposDocumentos = new ArrayList<DocumentType>();
        tiposDocumentos.add(new DocumentType(TIPO_DOC_SUSAR));
        tiposDocumentos.add(new DocumentType(TIPO_DOC_IB));
        tiposDocumentos.add(new DocumentType(TIPO_DOC_ADDENDUM));
        return tiposDocumentos;
    }
}
